package com.tangula.voicenote.entity;

import com.tangula.android.orm.Column;
import com.tangula.android.orm.DbType;
import com.tangula.android.orm.Entity;
import com.tangula.android.orm.Table;

import java.util.UUID;

@Table("T_NOTICE")
public class NoticeEntity implements Entity<String> {

    @Column(value="id", type = DbType.TEXT)
    private String id;

    /**
     * 便签类型.
     * 0-text
     * 1-audio
     */
    @Column(value="noteType", type = DbType.INTEGER)
    private int noteType=0;

    @Column(value="top", type = DbType.INTEGER)
    private int top=0;

    @Column(value="left", type = DbType.INTEGER)
    private int left=0;

    @Column(value="width", type = DbType.INTEGER)
    private int width;

    @Column(value="height", type = DbType.INTEGER)
    private int height;

    @Column(value="b64voice", type = DbType.TEXT)
    private String b64voice;

    @Column(value="message", type = DbType.TEXT)
    private String message="";

    @Column(value="createTm", type = DbType.INTEGER)
    private long createTm = System.currentTimeMillis();

    @Column(value="updateTm", type = DbType.INTEGER)
    private long updateTm = System.currentTimeMillis();

    /**
     * 颜色.
     */
    @Column(value="color", type = DbType.INTEGER)
    private int color=0;

    /**
     * 是否显示为最小图标.
     * 0 - 正常显示
     * 1 - 最小化停靠在侧边
     */
    @Column(value="viewStatus", type = DbType.INTEGER)
    private int viewStatus = 0;

    /**
     * 是否停驻在侧边.
     * 0 - 正常
     * 1 - top
     * 2 - left
     * 3 - right
     * 4 - bottom
     */
    @Column(value="dockStatus", type = DbType.INTEGER)
    private int dockStatus = 0;

    /**
     * 停驻位置.
     */
    @Column(value="dockOffset", type = DbType.INTEGER)
    private int dockOffset = 0;


    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public int getNoteType() {
        return noteType;
    }

    public void setNoteType(int noteType) {
        this.noteType = noteType;
    }

    public int getTop() {
        return top;
    }

    public void setTop(int top) {
        this.top = top;
    }

    public int getLeft() {
        return left;
    }

    public void setLeft(int left) {
        this.left = left;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public String getB64voice() {
        return b64voice;
    }

    public void setB64voice(String b64voice) {
        this.b64voice = b64voice;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public long getCreateTm() {
        return createTm;
    }

    public void setCreateTm(long createTm) {
        this.createTm = createTm;
    }

    public long getUpdateTm() {
        return updateTm;
    }

    public void setUpdateTm(long updateTm) {
        this.updateTm = updateTm;
    }

    public int getColor() {
        return color;
    }

    public void setColor(int color) {
        this.color = color;
    }

    public int getViewStatus() {
        return viewStatus;
    }

    public void setViewStatus(int viewStatus) {
        this.viewStatus = viewStatus;
    }

    public int getDockStatus() {
        return dockStatus;
    }

    public void setDockStatus(int dockStatus) {
        this.dockStatus = dockStatus;
    }

    public int getDockOffset() {
        return dockOffset;
    }

    public void setDockOffset(int dockOffset) {
        this.dockOffset = dockOffset;
    }
}
